<a href="<?php echo base_url()?>admin_home" class="logo">
        <!-- Add the class icon to your logo image or logo icon to add the margining -->
        Admin IPPI
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <div class="navbar-right">
            <ul class="nav navbar-nav">
                <!-- Messages: style can be found in dropdown.less-->
                
                <!-- Notifications: style can be found in dropdown.less -->
                
                <!-- Tasks: style can be found in dropdown.less -->
                
                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="glyphicon glyphicon-user"></i>
                        <span><?php
                        if($this->session->userdata('admin_user')){
                            echo $this->session->userdata('admin_user')->name;
                        }
                        ?> <i class="caret"></i></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header bg-light-blue">
                            <img src="<?php echo base_url()?>admin/img/avatar3.png" class="img-circle" alt="User Image" />
                            <p>
                                <?php
                        if($this->session->userdata('admin_user')){
                            echo $this->session->userdata('admin_user')->name;
                        }
                        ?>
                                <small>
                                    <?php
                                    if($this->session->userdata('admin_user')->level == 1){
                                        echo "Koordinator Nasional";
                                    }
                                    else{
                                        echo $this->session->userdata('admin_user')->state_name;
                                    }
                                    ?>
                                </small>
                            </p>
                        </li>
                        
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="<?php echo base_url();?>admin_ippi/edit" class="btn btn-default btn-flat">Change Password</a>
                            </div>
                            <div class="pull-right">
                                <a href="<?php echo base_url();?>admin_ippi/logout" class="btn btn-default btn-flat">Sign out</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>